package com.FFF;

public class User {
    String userName;

    String password;
    public boolean login(String userNameParam,String passwordParam) {
        System.out.println("传递过来的用户名：" + userNameParam);
        System.out.println("传递过来的密码：" + passwordParam);

        //       if(userNameParam.equals("admin") && passwordParam.equals("123456")){
        //          System.out.println("登录成功，欢迎你" + userNameParam);
        //      }else {
        //          System.out.println("登录失败，用户名或密码错误");
        //   }

        if (userNameParam.equals("admin") && passwordParam.equals("123456")){
            return true;
        }else{
            return false;
        }

    }
}

